//
//  NSDictionary+Log.m
//  WSQOCTools
//
//  Created by 翁胜琼 on 2019/1/21.
//  Copyright © 2019 Dev John. All rights reserved.
//

#import "NSDictionary+Log.h"

@implementation NSDictionary (Log)


/**
 * 方法描述：字典中的Unicode转化中文
 *
 * @return 返回一个NSString类型的str
 *
 */
- (NSString *)descriptionWithLocale:(id)locale
{
    //开头有{
    NSMutableString *str = [NSMutableString stringWithString:@"{\n"];
    
    //block遍历所有的键值对
    [self enumerateKeysAndObjectsUsingBlock:^(id key,id obj,BOOL *stop)
     {
         [str appendFormat:@"\t%@ = %@;\n", key, obj];
         
     }];
    
    //结尾有}
    [str appendString:@"}\n"];
    
    return str;
}



@end
